<html><head>
   <title>Code Templates</title>
   <meta name="generator"  content="HelpMaker.net">
   <meta name="keywords"  content="Code TemplatesEditor"></head>
<body bgcolor="#FFFCEA">
<table width="100%"  border="0"  cellspacing="0"  cellpadding="2"  bgcolor="#C0C0C0">
  <tr>
    <td align="left">
      <div align="left"><font face="Arial"  size="4"><span style=" font-size:14pt; font-family:Arial; color:#000000">Code Templates</span></font></div>

    </td>
    <td align="right">
      <font face="Arial"  size="2">
        <a href="editorshortcuts.htm">Previous</a>&nbsp;<a href="pyscripter.htm">Top</a>&nbsp;<a href="codeanddebuggerhints.htm">Next</a>
      </font>
    </td>
  </tr></table>
<hr><div align="left"><font face="Arial"  color="#010101"  size="2"><span style=" font-size:10pt; font-family:Arial; color:#010101">Code templates are snippets of code that can be inserted in the editor.&nbsp; Each template has a 
short name, a description and the associated text.&nbsp; The text of a code template can contain </span></font><a href="parameters.htm"><font face="Arial"  color="#0000ff"  size="2"><span style=" font-size:10pt; font-family:Arial; color:#0000ff"><u>parameters</u></span></font></a><font face="Arial"  color="#010101"  size="2"><span style=" font-size:10pt; font-family:Arial; color:#010101"> which are automatically expanded when the text 
is inserted. For example the 
&quot;Python Module Header&quot; shown below contains the $[ActiveDoc-Name] and other 
parameters.&nbsp; If the character &quot;|&quot; is present in the template, after the insertion of the template 
text, the cursor is placed at the position of that character and the character is deleted. </span></font></div><div align="left"><font face="Arial"  color="#010101"  size="2"><span style=" font-size:10pt; font-family:Arial; color:#010101"><br></span></font></div><div align="left"><font face="Arial"  color="#010101"  size="2"><span style=" font-size:10pt; font-family:Arial; color:#010101"><i>How to insert a code template in the editor:</i></span></font></div><div align="left"><font face="Arial"  color="#010101"  size="2"><span style=" font-size:10pt; font-family:Arial; color:#010101"><br></span></font></div><div align="left"><font face="Arial"  color="#010101"  size="2"><span style=" font-size:10pt; font-family:Arial; color:#010101">Type the template name and press the code template shortcut Ctrl-J.&nbsp; If you do not remember 
the name of template just press Ctrl-J and select from the pop-up list.</span></font></div><div align="left"><font face="Arial"  color="#010101"  size="2"><span style=" font-size:10pt; font-family:Arial; color:#010101"><br></span></font></div><div align="left"><font face="Arial"  color="#010101"  size="2"><span style=" font-size:10pt; font-family:Arial; color:#010101"><i>How to create/modify code templates:</i></span></font></div><div align="left"><font face="Arial"  color="#010101"  size="2"><span style=" font-size:10pt; font-family:Arial; color:#010101"><br></span></font></div><div align="left"><font face="Arial"  color="#010101"  size="2"><span style=" font-size:10pt; font-family:Arial; color:#010101">Select &quot;Customize Templates...&quot; from the </span></font><a href="toolsmenu.htm"><font face="Arial"  color="#0000ff"  size="2"><span style=" font-size:10pt; font-family:Arial; color:#0000ff"><u>Tools</u></span></font></a><font face="Arial"  color="#010101"  size="2"><span style=" font-size:10pt; font-family:Arial; color:#010101">|Options menu which displays the Code 
Templates dialog shown below.</span></font></div><div align="left"><font face="Arial"  color="#010101"  size="2"><span style=" font-size:10pt; font-family:Arial; color:#010101"><br></span></font></div><div align="left"><font face="Arial"  color="#010101"  size="2"><span style=" font-size:10pt; font-family:Arial; color:#010101"><br></span></font></div><div align="center"><img src="codetemplates1.JPG" style="width:26.31em; height:25.81em"   border="0"  alt="graphic"></div>

</body></html>
